.container {
  max-width: 600px;
  margin: 60px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0001;
  padding: 32px 24px;
}
.title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 24px;
  color: #444;
}
.chat-box {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 20px;
  background: #f7f7fa;
  border-radius: 8px;
  padding: 16px;
}
.msg {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  word-break: break-all;
}
.user {
  background: #e6f7ff;
  align-self: flex-end;
  text-align: right;
}
.ai {
  background: #f0f0f0;
  align-self: flex-start;
  text-align: left;
}
.input-area {
  display: flex;
  gap: 8px;
}
input[type='text'] {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
}
button {
  padding: 0 18px;
  border-radius: 8px;
  border: none;
  background: #4f8cff;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
button:disabled {
  background: #ccc;
  cursor: not-allowed;
} 